package com.example.common.enums;

public enum ResultCodeEnum {
    SUCCESS("200", "成功"),

    PARAM_ERROR("400", "参数异常"),
    TOKEN_INVALID_ERROR("401", "无效的token，请重新登录"),
    TOKEN_CHECK_ERROR("401", "token验证失败，请重新登录"),
    PARAM_LOST_ERROR("4001", "参数缺失"),

    SYSTEM_ERROR("500", "系统异常"),
    USER_EXIST_ERROR("5001", "用户名已存在"),
    USER_NOT_LOGIN("5002", "用户未登录"),
    USER_ACCOUNT_ERROR("5003", "账号或密码错误"),
    USER_NOT_EXIST_ERROR("5004", "用户不存在"),
    PARAM_PASSWORD_ERROR("5005", "原密码输入错误"),
    ROLE_ERROR("5006", "角色异常"),
    ACCOUNT_LIMIT_ERROR("5007", "账户余额不足"),

    //"该药品有绑定的药品条目，禁止删除！"
    DRUG_BIND_ERROR("5008", "该药品有绑定的药品条目，禁止删除！"),

    //用户不存在
    USER_NOT_EXIST("5009", "用户不存在"),

    //挂号单编号重复
    REGISTRATION_FORM_NUMBER_REPEAT("5010", "挂号单编号重复"),
    //病床编号重复
    BED_NUMBER_REPEAT("5011", "病床编号重复"),

    INVALID_ROLE("5012", "无效的角色"),
    //token为空
    TOKEN_NULL("401","token为空，请重新登录"),


    ;


    public String code;
    public String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
